from lxml import etree

if __name__ == '__main__':
    parser = etree.HTMLParser(encoding="utf-8")
    tree = etree.parse(r"..\day02\test.html", parser=parser)
    # r = tree.xpath("/html/head/title")
    # r = tree.xpath("/html//div")
    # r= tree.xpath("//div[@class='wrapper']")
    r= tree.xpath("//div[@class='wrapper']/p")
    print(r)
